package test.project;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class MainMenueActivity extends Activity{
    OnClickListener ordersButtonPressedListener = new OnClickListener() {
		
		public void onClick(View v) {
			Intent intent = new Intent(MainMenueActivity.this, NewOrderScreenActivity.class);
			MainMenueActivity.this.startActivity(intent);
		}
	};
	
    OnClickListener infoButtonPressedListener = new OnClickListener() {
		
		public void onClick(View v) {
			Intent intent = new Intent(MainMenueActivity.this, InfoScreenActivity.class);
			MainMenueActivity.this.startActivity(intent);
		}
	};
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    		super.onCreate(savedInstanceState);
    		
			setContentView(R.layout.mainmenue);
    		Button ordersButton = (Button)findViewById(R.id.orderButton1);
    		Button infoButton = (Button)findViewById(R.id.infoButton1);
    		
    		ordersButton.setOnClickListener(ordersButtonPressedListener);
    		infoButton.setOnClickListener(infoButtonPressedListener);
        
        
    }

}
